package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新患者对象 patient
 * 
 * @author ruoyi
 * @date 2024-05-30
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者ID */
    private Long patientId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthdate;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String pn;

    /** 紧急联系人电话 */
    @Excel(name = "紧急联系人电话")
    private String ec;

    /** 过敏史 */
    @Excel(name = "过敏史")
    private String a;

    /** 既往病史 */
    @Excel(name = "既往病史")
    private String mh;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gt;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setBirthdate(Date birthdate) 
    {
        this.birthdate = birthdate;
    }

    public Date getBirthdate() 
    {
        return birthdate;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setPn(String pn) 
    {
        this.pn = pn;
    }

    public String getPn() 
    {
        return pn;
    }
    public void setEc(String ec) 
    {
        this.ec = ec;
    }

    public String getEc() 
    {
        return ec;
    }
    public void setA(String a) 
    {
        this.a = a;
    }

    public String getA() 
    {
        return a;
    }
    public void setMh(String mh) 
    {
        this.mh = mh;
    }

    public String getMh() 
    {
        return mh;
    }
    public void setGt(Date gt) 
    {
        this.gt = gt;
    }

    public Date getGt() 
    {
        return gt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthdate", getBirthdate())
            .append("idcard", getIdcard())
            .append("pn", getPn())
            .append("ec", getEc())
            .append("a", getA())
            .append("mh", getMh())
            .append("gt", getGt())
            .toString();
    }
}
